Optimal. Leaf size=323 \[ \frac {5 \left (b^2-4 a c\right )^2 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \sqrt {a+b x+c x^2}}{16384 c^5}-\frac {5 \left (b^2-4 a c\right ) \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{3/2}}{6144 c^4}+\frac {\left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{5/2}}{384 c^3}+\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}-\frac {5 \left (b^2-4 a c\right )^3 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{32768 c^{11/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 323, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {756, 654, 626,
635, 212} \begin {gather*} -\frac {5 \left (b^2-4 a c\right )^3 \left (-4 c e (a e+8 b d)+9 b^2 e^2+32 c^2 d^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{32768 c^{11/2}}+\frac {5 \left (b^2-4 a c\right )^2 (b+2 c x) \sqrt {a+b x+c x^2} \left (-4 c e (a e+8 b d)+9 b^2 e^2+32 c^2 d^2\right )}{16384 c^5}-\frac {5 \left (b^2-4 a c\right ) (b+2 c x) \left (a+b x+c x^2\right )^{3/2} \left (-4 c e (a e+8 b d)+9 b^2 e^2+32 c^2 d^2\right )}{6144 c^4}+\frac {(b+2 c x) \left (a+b x+c x^2\right )^{5/2} \left (-4 c e (a e+8 b d)+9 b^2 e^2+32 c^2 d^2\right )}{384 c^3}+\frac {9 e \left (a+b x+c x^2\right )^{7/2} (2 c d-b e)}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 626
Rule 635
Rule 654
Rule 756
Rubi steps
\begin {align*} \int (d+e x)^2 \left (a+b x+c x^2\right )^{5/2} \, dx &=\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}+\frac {\int \left (\frac {1}{2} \left (16 c d^2-2 e \left (\frac {7 b d}{2}+a e\right )\right )+\frac {9}{2} e (2 c d-b e) x\right ) \left (a+b x+c x^2\right )^{5/2} \, dx}{8 c}\\ &=\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}+\frac {\left (-\frac {9}{2} b e (2 c d-b e)+c \left (16 c d^2-2 e \left (\frac {7 b d}{2}+a e\right )\right )\right ) \int \left (a+b x+c x^2\right )^{5/2} \, dx}{16 c^2}\\ &=\frac {\left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{5/2}}{384 c^3}+\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}-\frac {\left (5 \left (b^2-4 a c\right ) \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right )\right ) \int \left (a+b x+c x^2\right )^{3/2} \, dx}{768 c^3}\\ &=-\frac {5 \left (b^2-4 a c\right ) \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{3/2}}{6144 c^4}+\frac {\left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{5/2}}{384 c^3}+\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}+\frac {\left (5 \left (b^2-4 a c\right )^2 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right )\right ) \int \sqrt {a+b x+c x^2} \, dx}{4096 c^4}\\ &=\frac {5 \left (b^2-4 a c\right )^2 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \sqrt {a+b x+c x^2}}{16384 c^5}-\frac {5 \left (b^2-4 a c\right ) \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{3/2}}{6144 c^4}+\frac {\left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{5/2}}{384 c^3}+\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}-\frac {\left (5 \left (b^2-4 a c\right )^3 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right )\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{32768 c^5}\\ &=\frac {5 \left (b^2-4 a c\right )^2 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \sqrt {a+b x+c x^2}}{16384 c^5}-\frac {5 \left (b^2-4 a c\right ) \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{3/2}}{6144 c^4}+\frac {\left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{5/2}}{384 c^3}+\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}-\frac {\left (5 \left (b^2-4 a c\right )^3 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right )\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{16384 c^5}\\ &=\frac {5 \left (b^2-4 a c\right )^2 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \sqrt {a+b x+c x^2}}{16384 c^5}-\frac {5 \left (b^2-4 a c\right ) \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{3/2}}{6144 c^4}+\frac {\left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) (b+2 c x) \left (a+b x+c x^2\right )^{5/2}}{384 c^3}+\frac {9 e (2 c d-b e) \left (a+b x+c x^2\right )^{7/2}}{112 c^2}+\frac {e (d+e x) \left (a+b x+c x^2\right )^{7/2}}{8 c}-\frac {5 \left (b^2-4 a c\right )^3 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{32768 c^{11/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.29, size = 538, normalized size = 1.67 \begin {gather*} \frac {2 \sqrt {c} \sqrt {a+x (b+c x)} \left (945 b^7 e^2-210 b^6 c e (16 d+3 e x)+28 b^5 c \left (-375 a e^2+2 c \left (60 d^2+40 d e x+9 e^2 x^2\right )\right )+8 b^4 c^2 \left (7 a e (640 d+113 e x)-2 c x \left (140 d^2+112 d e x+27 e^2 x^2\right )\right )+16 b^3 c^2 \left (2359 a^2 e^2+8 c^2 x^2 \left (14 d^2+12 d e x+3 e^2 x^2\right )-4 a c \left (560 d^2+336 d e x+71 e^2 x^2\right )\right )+32 b^2 c^3 \left (-3 a^2 e (1232 d+199 e x)+12 a c x \left (56 d^2+40 d e x+9 e^2 x^2\right )+8 c^2 x^3 \left (378 d^2+592 d e x+243 e^2 x^2\right )\right )+64 b c^3 \left (-663 a^3 e^2+6 a^2 c \left (308 d^2+152 d e x+29 e^2 x^2\right )+16 c^3 x^4 \left (140 d^2+232 d e x+99 e^2 x^2\right )+8 a c^2 x^2 \left (546 d^2+788 d e x+307 e^2 x^2\right )\right )+128 c^4 \left (3 a^3 e (256 d+35 e x)+16 c^3 x^5 \left (28 d^2+48 d e x+21 e^2 x^2\right )+8 a c^2 x^3 \left (182 d^2+288 d e x+119 e^2 x^2\right )+2 a^2 c x \left (924 d^2+1152 d e x+413 e^2 x^2\right )\right )\right )+105 \left (b^2-4 a c\right )^3 \left (32 c^2 d^2+9 b^2 e^2-4 c e (8 b d+a e)\right ) \log \left (b+2 c x-2 \sqrt {c} \sqrt {a+x (b+c x)}\right )}{688128 c^{11/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(660\) vs.
\(2(293)=586\).
time = 0.97, size = 661, normalized size = 2.05 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 702 vs.
\(2 (301) = 602\).
time = 4.15, size = 1407, normalized size = 4.36 \begin {gather*} \left [\frac {105 \, {\left (32 \, {\left (b^{6} c^{2} - 12 \, a b^{4} c^{3} + 48 \, a^{2} b^{2} c^{4} - 64 \, a^{3} c^{5}\right )} d^{2} - 32 \, {\left (b^{7} c - 12 \, a b^{5} c^{2} + 48 \, a^{2} b^{3} c^{3} - 64 \, a^{3} b c^{4}\right )} d e + {\left (9 \, b^{8} - 112 \, a b^{6} c + 480 \, a^{2} b^{4} c^{2} - 768 \, a^{3} b^{2} c^{3} + 256 \, a^{4} c^{4}\right )} e^{2}\right )} \sqrt {c} \log \left (-8 \, c^{2} x^{2} - 8 \, b c x - b^{2} + 4 \, \sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {c} - 4 \, a c\right ) + 4 \, {\left (57344 \, c^{8} d^{2} x^{5} + 143360 \, b c^{7} d^{2} x^{4} + 3584 \, {\left (27 \, b^{2} c^{6} + 52 \, a c^{7}\right )} d^{2} x^{3} + 1792 \, {\left (b^{3} c^{5} + 156 \, a b c^{6}\right )} d^{2} x^{2} - 448 \, {\left (5 \, b^{4} c^{4} - 48 \, a b^{2} c^{5} - 528 \, a^{2} c^{6}\right )} d^{2} x + 224 \, {\left (15 \, b^{5} c^{3} - 160 \, a b^{3} c^{4} + 528 \, a^{2} b c^{5}\right )} d^{2} + {\left (43008 \, c^{8} x^{7} + 101376 \, b c^{7} x^{6} + 945 \, b^{7} c - 10500 \, a b^{5} c^{2} + 37744 \, a^{2} b^{3} c^{3} - 42432 \, a^{3} b c^{4} + 256 \, {\left (243 \, b^{2} c^{6} + 476 \, a c^{7}\right )} x^{5} + 128 \, {\left (3 \, b^{3} c^{5} + 1228 \, a b c^{6}\right )} x^{4} - 16 \, {\left (27 \, b^{4} c^{4} - 216 \, a b^{2} c^{5} - 6608 \, a^{2} c^{6}\right )} x^{3} + 8 \, {\left (63 \, b^{5} c^{3} - 568 \, a b^{3} c^{4} + 1392 \, a^{2} b c^{5}\right )} x^{2} - 2 \, {\left (315 \, b^{6} c^{2} - 3164 \, a b^{4} c^{3} + 9552 \, a^{2} b^{2} c^{4} - 6720 \, a^{3} c^{5}\right )} x\right )} e^{2} + 32 \, {\left (3072 \, c^{8} d x^{6} + 7424 \, b c^{7} d x^{5} + 128 \, {\left (37 \, b^{2} c^{6} + 72 \, a c^{7}\right )} d x^{4} + 16 \, {\left (3 \, b^{3} c^{5} + 788 \, a b c^{6}\right )} d x^{3} - 8 \, {\left (7 \, b^{4} c^{4} - 60 \, a b^{2} c^{5} - 1152 \, a^{2} c^{6}\right )} d x^{2} + 2 \, {\left (35 \, b^{5} c^{3} - 336 \, a b^{3} c^{4} + 912 \, a^{2} b c^{5}\right )} d x - {\left (105 \, b^{6} c^{2} - 1120 \, a b^{4} c^{3} + 3696 \, a^{2} b^{2} c^{4} - 3072 \, a^{3} c^{5}\right )} d\right )} e\right )} \sqrt {c x^{2} + b x + a}}{1376256 \, c^{6}}, \frac {105 \, {\left (32 \, {\left (b^{6} c^{2} - 12 \, a b^{4} c^{3} + 48 \, a^{2} b^{2} c^{4} - 64 \, a^{3} c^{5}\right )} d^{2} - 32 \, {\left (b^{7} c - 12 \, a b^{5} c^{2} + 48 \, a^{2} b^{3} c^{3} - 64 \, a^{3} b c^{4}\right )} d e + {\left (9 \, b^{8} - 112 \, a b^{6} c + 480 \, a^{2} b^{4} c^{2} - 768 \, a^{3} b^{2} c^{3} + 256 \, a^{4} c^{4}\right )} e^{2}\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{2} + b c x + a c\right )}}\right ) + 2 \, {\left (57344 \, c^{8} d^{2} x^{5} + 143360 \, b c^{7} d^{2} x^{4} + 3584 \, {\left (27 \, b^{2} c^{6} + 52 \, a c^{7}\right )} d^{2} x^{3} + 1792 \, {\left (b^{3} c^{5} + 156 \, a b c^{6}\right )} d^{2} x^{2} - 448 \, {\left (5 \, b^{4} c^{4} - 48 \, a b^{2} c^{5} - 528 \, a^{2} c^{6}\right )} d^{2} x + 224 \, {\left (15 \, b^{5} c^{3} - 160 \, a b^{3} c^{4} + 528 \, a^{2} b c^{5}\right )} d^{2} + {\left (43008 \, c^{8} x^{7} + 101376 \, b c^{7} x^{6} + 945 \, b^{7} c - 10500 \, a b^{5} c^{2} + 37744 \, a^{2} b^{3} c^{3} - 42432 \, a^{3} b c^{4} + 256 \, {\left (243 \, b^{2} c^{6} + 476 \, a c^{7}\right )} x^{5} + 128 \, {\left (3 \, b^{3} c^{5} + 1228 \, a b c^{6}\right )} x^{4} - 16 \, {\left (27 \, b^{4} c^{4} - 216 \, a b^{2} c^{5} - 6608 \, a^{2} c^{6}\right )} x^{3} + 8 \, {\left (63 \, b^{5} c^{3} - 568 \, a b^{3} c^{4} + 1392 \, a^{2} b c^{5}\right )} x^{2} - 2 \, {\left (315 \, b^{6} c^{2} - 3164 \, a b^{4} c^{3} + 9552 \, a^{2} b^{2} c^{4} - 6720 \, a^{3} c^{5}\right )} x\right )} e^{2} + 32 \, {\left (3072 \, c^{8} d x^{6} + 7424 \, b c^{7} d x^{5} + 128 \, {\left (37 \, b^{2} c^{6} + 72 \, a c^{7}\right )} d x^{4} + 16 \, {\left (3 \, b^{3} c^{5} + 788 \, a b c^{6}\right )} d x^{3} - 8 \, {\left (7 \, b^{4} c^{4} - 60 \, a b^{2} c^{5} - 1152 \, a^{2} c^{6}\right )} d x^{2} + 2 \, {\left (35 \, b^{5} c^{3} - 336 \, a b^{3} c^{4} + 912 \, a^{2} b c^{5}\right )} d x - {\left (105 \, b^{6} c^{2} - 1120 \, a b^{4} c^{3} + 3696 \, a^{2} b^{2} c^{4} - 3072 \, a^{3} c^{5}\right )} d\right )} e\right )} \sqrt {c x^{2} + b x + a}}{688128 \, c^{6}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (d + e x\right )^{2} \left (a + b x + c x^{2}\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 767 vs.
\(2 (301) = 602\).
time = 4.25, size = 767, normalized size = 2.37 \begin {gather*} \frac {1}{344064} \, \sqrt {c x^{2} + b x + a} {\left (2 \, {\left (4 \, {\left (2 \, {\left (8 \, {\left (2 \, {\left (12 \, {\left (14 \, c^{2} x e^{2} + \frac {32 \, c^{9} d e + 33 \, b c^{8} e^{2}}{c^{7}}\right )} x + \frac {224 \, c^{9} d^{2} + 928 \, b c^{8} d e + 243 \, b^{2} c^{7} e^{2} + 476 \, a c^{8} e^{2}}{c^{7}}\right )} x + \frac {1120 \, b c^{8} d^{2} + 1184 \, b^{2} c^{7} d e + 2304 \, a c^{8} d e + 3 \, b^{3} c^{6} e^{2} + 1228 \, a b c^{7} e^{2}}{c^{7}}\right )} x + \frac {6048 \, b^{2} c^{7} d^{2} + 11648 \, a c^{8} d^{2} + 96 \, b^{3} c^{6} d e + 25216 \, a b c^{7} d e - 27 \, b^{4} c^{5} e^{2} + 216 \, a b^{2} c^{6} e^{2} + 6608 \, a^{2} c^{7} e^{2}}{c^{7}}\right )} x + \frac {224 \, b^{3} c^{6} d^{2} + 34944 \, a b c^{7} d^{2} - 224 \, b^{4} c^{5} d e + 1920 \, a b^{2} c^{6} d e + 36864 \, a^{2} c^{7} d e + 63 \, b^{5} c^{4} e^{2} - 568 \, a b^{3} c^{5} e^{2} + 1392 \, a^{2} b c^{6} e^{2}}{c^{7}}\right )} x - \frac {1120 \, b^{4} c^{5} d^{2} - 10752 \, a b^{2} c^{6} d^{2} - 118272 \, a^{2} c^{7} d^{2} - 1120 \, b^{5} c^{4} d e + 10752 \, a b^{3} c^{5} d e - 29184 \, a^{2} b c^{6} d e + 315 \, b^{6} c^{3} e^{2} - 3164 \, a b^{4} c^{4} e^{2} + 9552 \, a^{2} b^{2} c^{5} e^{2} - 6720 \, a^{3} c^{6} e^{2}}{c^{7}}\right )} x + \frac {3360 \, b^{5} c^{4} d^{2} - 35840 \, a b^{3} c^{5} d^{2} + 118272 \, a^{2} b c^{6} d^{2} - 3360 \, b^{6} c^{3} d e + 35840 \, a b^{4} c^{4} d e - 118272 \, a^{2} b^{2} c^{5} d e + 98304 \, a^{3} c^{6} d e + 945 \, b^{7} c^{2} e^{2} - 10500 \, a b^{5} c^{3} e^{2} + 37744 \, a^{2} b^{3} c^{4} e^{2} - 42432 \, a^{3} b c^{5} e^{2}}{c^{7}}\right )} + \frac {5 \, {\left (32 \, b^{6} c^{2} d^{2} - 384 \, a b^{4} c^{3} d^{2} + 1536 \, a^{2} b^{2} c^{4} d^{2} - 2048 \, a^{3} c^{5} d^{2} - 32 \, b^{7} c d e + 384 \, a b^{5} c^{2} d e - 1536 \, a^{2} b^{3} c^{3} d e + 2048 \, a^{3} b c^{4} d e + 9 \, b^{8} e^{2} - 112 \, a b^{6} c e^{2} + 480 \, a^{2} b^{4} c^{2} e^{2} - 768 \, a^{3} b^{2} c^{3} e^{2} + 256 \, a^{4} c^{4} e^{2}\right )} \log \left ({\left | -2 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} \sqrt {c} - b \right |}\right )}{32768 \, c^{\frac {11}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (d+e\,x\right )}^2\,{\left (c\,x^2+b\,x+a\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________